/*** 文章卡片 ***/
.article-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.article-item:hover {
    /*transform: translateY(-5px);*/
    /*box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);*/
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


/** 顶部 **/
.article-item .article-top {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}

/** 中间 **/
.article-item .article-middle {
    padding: 1.25rem;
    border-bottom: 1px solid #eee;
}

/** 底部 **/
.article-item .article-bottom {
    padding: 0.75rem 1.25rem;
}

/** 操作 **/
.article-item .article-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

/** 类似焦点图的展示 **/
.article-item.banner {
    position: relative;
}

.banner .article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
    color: white;
    background-color: white;
}

/** 将前置单图与内容水平排列 **/
.article-item.flex {
    display: flex;
}

/** 标签 **/
.article-item .article-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    /*** 矩形 ***/
    /*border-radius: 4px;*/
    /*** 椭圆形 ***/
    border-radius: 20px;
    font-weight: 500;
}


/*** 文章信息：作者 ***/
.article-item .author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-item .author-info .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    /*** 兼容没有图片的时候的文字展示  ***/
    background-color: #4361ee;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    /*margin-right: 10px;*/
    flex-shrink: 0;
}

.article-item .author-info .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-item .author-info .author-name {
    font-weight: 500;
    color: #333;
}

.article-item .author-info .post-time {
    font-size: 0.85rem;
    color: #6c757d;
}


/*** 文章信息：标题 ***/
.article-item .article-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.article-item .article-title a {
    color: #212529;
    text-decoration: none;
}

.article-item .article-title a:hover {
    color: #0d6efd;
}

/*** 文章信息：描述 ***/
.article-item .article-desc {
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/*** 文章信息：图片 ***/
.article-item .image-grid {
    display: grid;
    gap: 4px;
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.article-item .image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*** 文章信息：图片 一张图片 .image-grid.grid-1 ***/
.article-item .image-grid.grid-1 {
    grid-template-columns: 1fr;
    aspect-ratio: 16/9;
}

/*** 文章信息：图片 两张图片 .image-grid.grid-2 ***/
.article-item .image-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    aspect-ratio: 16/9;
}

/*** 文章信息：图片 三张图片 .image-grid.grid-3 ***/
.article-item .image-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    aspect-ratio: 4/3;
}

.article-item .image-grid.grid-3 img:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/*** 文章信息：图片 四张图片 .image-grid.grid-4 ***/
.article-item .image-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    aspect-ratio: 16/9;
}

.article-item .multi-image {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.article-item .multi-image img {
    flex: 1;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}


/*** 文章操作 ***/
.article-item .stats {
    display: flex;
    gap: 1.5rem;
}

.article-item .stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/*** 文章操作 ***/
.article-item .actions {
    display: flex;
    gap: 1rem;
}

.article-item .actions .action-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.article-item .actions .action-btn:hover {
    color: #0d6efd;
}

.article-item .actions .action-btn.liked {
    color: #dc3545;
}

.article-item .actions .action-btn.bookmarked {
    color: #ffc107;
}


